package com.hq.ims.data.utils;

import java.util.Arrays;
import java.util.List;


/**
 * PC
 */
public class LocalConstant {

    public final static String DEFAULT_DEPARTMENT_NAME = "默认部门";
    public final static List<String> PLATFORM_COMPANY_ID_LIST = Arrays.asList("g");
    public final static String SYS_TYPE_PUBLIC_URL_PREFIX = "/global";
    // --------- 系统访问类型 --------
    public final static String SYS_TYPE_PLATFORM_URL_PREFIX = "/platform";
    public final static String SYS_TYPE_USER_PC_URL_PREFIX = "/user/pc";
    public final static String SYS_TYPE_USER_APP_URL_PREFIX = "/user/app";

    public final static List<String> PREVIEW_SUFFIX_LIST = Arrays.asList("jpg", "png", "pdf", "jpeg", "gif", "mp4");

    public final static String RSA_DECRY_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAIAB8W2ZNFfoRdsjk1dbGRfLfsVcm3eK/Lzl4x3rM7Yu0AwKB+BjkEHzFd7HcIXRIk/jZAoaZPH7VVgE4tOrET9793lyO0Bc+oiu8kBYe9p1AeMCOVR2VFyS7lnFa0fIU3/xsUqqyfEM871C5vt5KFWFjvuYiyxjtujf8MuR9Ty/AgMBAAECgYB8lueQP9xlb0qGluKy1JTgxwy1NYSP3rRNewcKOMGVIY0XGrA940omFl4D/mPzqvDVhsH432W+7FxNljvbvxXCKpkj4cCQYDYSwtf/D6COffUMT7Hxc1fRRVc+ud0qWEpo0ljQQP4SZSHlm/G1dQiTkZKADQn9ED55G3Qt1kKfEQJBANRYdnObtHkgK0OU4KF0MBQYEELzyIogf+f2VKcVEHnVpK+2BP5NhXOME9CcMJ0HEGVeF+OWOxJ9W3yuKoWwg4kCQQCaUts3+vdYNd+jGWViIgdfv1ESloLufTc1Yy8zvpUiD4yFSn9XrKjINBltgs8q0NHit9YLETZap2/E+vgtF4QHAkByEGLwjv9O4VzcHKjdkZAR+yshC9r5d6O9crDeX45OI9knGdtszy+UdfZe5MeoUhcYnIawlg59TCFMxDHLRpohAkEAi3+ES+kfNuyT+FHXlEpgUguVlHDbcAteIXND0sle84gMpNw/mhgoBbkalyRccj6Kyx8Ua7KmaHHcFborJk+QdwJAAsLNm+kk/vpHMXNM5acsTc7tm21svSc30j61Da9qpAHZU7iYIwyZZ89h7C9ZdTHGEhSbjWHGwQtLeswY3t3LIw==";

    //密码正由表达式
    public final static String PWD_REG = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[!@#$%^&*()\\-_=+]).{8,}$";

    public final static List<String> PWD_REG_LIST = Arrays.asList(
            ".*[a-z].*",
            ".*[A-Z].*",
            ".*\\d.*",
            //特殊符号一定要放在最后有特殊验证
//            ".*[!@#$%^&*()\\-_=+].*",
            //特殊符号一定要放在最后有特殊验证
            ".*[~!@#$%^&*_\\-+=`\\|\\\\(){}:;\"'<>,.?/].*"
    );
    public final static String PWD_REG_ERR_MSG = "密码包含大写,小写,数字,特殊符号并且至少8位数";

    public final static String ADMIN_ACCOUNT = "admin";

    // --------- Mysql取第一条数据 --------

    public final static String LIMIT_1 = "limit 1";

    // --------- 操作方法 --------

    public final static String INSERT = "insert";

    public final static String EDIT = "edit";

    // --------- 重复率过滤key --------
    public final static String FILTER_KEY="BUSI_REPEAT_FILTER";

    public final static String CONSTRUCTION_FILTER_KEY="BUSI_REPEAT_FILTER_CONSTRUCTION";

    public final static String OWNER_FILTER_KEY="BUSI_REPEAT_FILTER_OWNER";

    public final static String PROJECT_NAME_FILTER_KEY="BUSI_REPEAT_FILTER_PROJECT_NAME";

    public final static String PROJECT_ADDRESS_FILTER_KEY="BUSI_REPEAT_FILTER_PROJECT_ADDRESS";

    // --------- 省市json文件的名称 --------
    public final static String CONFIG_DICT_ADDRESS_JSON_FILE_NAME = "chinadata_v3_flat.json";

    // --------- app推送tokenKey --------

    public final static String APP_PUSH_TOKEN_KEY = "appPushToken";

    // ----------------------------- 数字 -----------------------------------

    public final static Integer INT_NUM_ZERO = 0;
    public final static Integer INT_NUM_ONE = 1;
    public final static Integer INT_NUM_TWO = 2;
    public final static Integer INT_NUM_THREE = 3;
    public final static Integer INT_NUM_FOUR = 4;
    public final static Integer INT_NUM_FIVE = 5;
    public final static Integer INT_NUM_SIX = 6;
    public final static Integer INT_NUM_SEVEN = 7;
    public final static Integer INT_NUM_EIGHT = 8;
    public final static Integer INT_NUM_NINE = 9;

    // ----------------------------- redisKey -----------------------------------
    // --------- 短信验证手机 --------
    public final static String REDIS_KEY_SMS = "SMS_VERIFY_MOBILE";
    public final static String REDIS_KEY_ID_CARD = "REDIS_KEY_ID_CARD";
    public final static String REDIS_KEY_PREFIX_IMAGE_SLIDE_VALID = "REDIS_KEY_PREFIX_IMAGE_SLIDE_VALID";

    // --------- 公司 --------
    public final static String REDIS_LIST_KEY_COMPANY = "COMPANY";


    // ----------------------------- 文件Key相关 -----------------------------------

    //公司证件照片
    public final static String FILE_COMPANY_CARD = "FILE_COMPANY_CARD";
    //公司分成规则
    public final static String FILE_COMPANY_DIVIDE_INTO_RULE = "FILE_COMPANY_DIVIDE_INTO_RULE";
    //公司资质附件
    public final static String FILE_COMPANY_APTITUDE = "FILE_COMPANY_APTITUDE";
    //经营信息反馈内容文件
    public final static String FILE_FEEDBACK_CONTENT = "FILE_FEEDBACK_CONTENT";
}
